ioctl/g_selection: derive Copy and Eq for SelectionTarget and SelectionType
diff --git a/lib/src/ioctl/g_selection.rs b/lib/src/ioctl/g_selection.rs index a50d859..c3a8a94 100644 --- a/lib/src/ioctl/g_selection.rs +++ b/lib/src/ioctl/g_selection.rs
@@ -9,14 +9,14 @@ use crate::bindings::v4l2_rect; use crate::bindings::v4l2_selection; -#[derive(Debug, N)] +#[derive(Debug, N, Clone, Copy, PartialEq, Eq)] #[repr(u32)] pub enum SelectionType { Capture = bindings::v4l2_buf_type_V4L2_BUF_TYPE_VIDEO_CAPTURE, Output = bindings::v4l2_buf_type_V4L2_BUF_TYPE_VIDEO_OUTPUT, } -#[derive(Debug, N)] +#[derive(Debug, N, Clone, Copy, PartialEq, Eq)] #[repr(u32)] pub enum SelectionTarget { Crop = bindings::V4L2_SEL_TGT_CROP,